package com.rent.core.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author zn
 * @since 2025-03-04
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("basic_config")
@ApiModel(value = "BasicConfig对象", description = "BasicConfig")
public class BasicConfig implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("配置名称")
    @TableField("name")
    private String name;

    @ApiModelProperty("授权key")
    @TableField("asc_key")
    private String ascKey;

    @ApiModelProperty("密钥")
    @TableField("secret")
    private String secret;

    @ApiModelProperty("类型")
    @TableField("type")
    private Integer type;

    @ApiModelProperty("有效期")
    @TableField("indate")
    private Date indate;

    @ApiModelProperty("刷新间隔")
    @TableField("refresh_time")
    private Integer refreshTime;

    @ApiModelProperty("描述")
    @TableField("description")
    private String description;

    @ApiModelProperty("链接")
    @TableField("url")
    private String url;

    @ApiModelProperty("简介")
    @TableField("intro")
    private String intro;

    @ApiModelProperty("加密方式")
    @TableField("encry")
    private String encry;

    @ApiModelProperty("加密令牌")
    @TableField("token")
    private String token;

    @TableField("create_time")
    private Date createTime;

    @ApiModelProperty("更新时间")
    @TableField("update_time")
    private Date updateTime;
}
